n=int(input())
for i in range(0,n):
    for j in range(0,n):
        x=i+j
        while x>25:
            x-=26
        print(chr(ord('A')+x),end='')
    print()